﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Vaccine.API.Migrations
{
    public partial class init : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "VaccineInfos",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false, comment: "主键"),
                    Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "疫苗名称"),
                    Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true, comment: "疫苗描述"),
                    Quantity = table.Column<int>(type: "int", nullable: false, comment: "疫苗数量"),
                    CreatedTime = table.Column<DateTime>(type: "datetime2", nullable: false, comment: "创建时间"),
                    LastModifiedTime = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "最近修改时间")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_VaccineInfos", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "VaccineInfos");
        }
    }
}
